From 4def0d9ca1ab8a1fdf4300f87118068e46e6491f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 13 Nov 2009 21:59:20 +0000 Subject: [PATCH] xen: allow stubdom to call unmap_domain_pirq there is one missing IS_PRIV/IS_PRIV_FOR change in xen to make xc_physdev_unmap_pirq work with stubdoms. Signed-off-by: Stefano Stabellini --- xen/arch/x86/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c index da77276634..804d18b45e 100644 --- a/xen/arch/x86/irq.c +++ b/xen/arch/x86/irq.c @@ -1501,7 +1501,7 @@ int unmap_domain_pirq(struct domain *d, int pirq) if ( (pirq < 0) || (pirq >= d->nr_pirqs) ) return -EINVAL; - if ( !IS_PRIV(current->domain) ) + if ( !IS_PRIV_FOR(current->domain, d) ) return -EINVAL; ASSERT(spin_is_locked(&pcidevs_lock)); -- 2.30.2